<link type="text/css" rel="stylesheet" href="<?php echo url('/assets/css/ftp_index.css'); ?>"/>
<div class="tips"></div>
<form action="<?php echo url('ftp/upload');?>" method="post">
	<div class="form-row">
		<label for="server">服务器</label>
		<select>
			<option value="0">select</option>
			<?php foreach($servers as $server):?>
			<option value="<?php echo $server['id'];?>"><?php echo $server['name'];?></option>
			<?php endforeach; ?>
		</select>
		<label for="project">项目</label>
		<select>
			<option value="0">select</option>
			<?php foreach($projects as $project):?>
			<option value="<?php echo $project['id'];?>"><?php echo $project['name'];?></option>
			<?php endforeach; ?>
		</select>
	</div>
	<textarea name="files" rows="10" cols="30">在这里输入文件列表，每个文件用换行符分割。</textarea>
	<input type="submit" name="submit" value="upload"/>
</form>

<table class="result">
	<thead>
		<tr>
			<td>index</td>
			<td>local file</td>
			<td>remote file</td>
			<td>status</td>
		</tr>
	</thead>
	<tfoot>
		<tr>
			<td colspan="4"></td>
		</tr>
	</tfoot>
	<tbody>
		<tr><td colspan="4" style="text-align:center;"> -- </td></tr>
	</tbody>
</table>

<script type="text/javascript" src="<?php echo url('/assets/js/ftp_index.js?').time(); ?>" charset="utf-8"></script>